const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  menus: state => state.user.menus, // 菜单权限
  roles: state => state.user.roles, // 角色权限控制按钮
  users: state => state.user.users, // 所有用户
  isAdmin: state => state.user.isAdmin,
  permission_routes: state => state.permission.routes
}
export default getters